// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_PROD_WO_MTRL
// * CreateDate    : 2014-06-05 18:30:22
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:22
// * LastChanger   : 2014-06-05 18:30:22
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class ProdWoMtrlTable : TableInfo
    {
		public const string C_TableName = "PROD_WO_MTRL";
		
		public const string C_Wo_No = "Wo_No";
		public const string C_Mtrl_Id = "Mtrl_Id";
		public const string C_Mtrl_Code = "Mtrl_Code";
		public const string C_Mtrl_Name = "Mtrl_Name";
		public const string C_Req_Qty = "Req_Qty";
		public const string C_Used_Qty = "Used_Qty";
		public const string C_Out_Qty = "Out_Qty";
		public const string C_Scrap_Qty = "Scrap_Qty";
		public const string C_Return_Qty = "Return_Qty";
		public const string C_Unit = "Unit";
		public const string C_ID = "ID";
		public const string C_UNIT_QTY = "UNIT_QTY";
		public const string C_PO_NO = "PO_NO";
		public const string C_ITEM_TYPE = "ITEM_TYPE";
		
		public ProdWoMtrlTable()
        {
            _tableName = "PROD_WO_MTRL";
        }
		
		protected static ProdWoMtrlTable _current;
        public static ProdWoMtrlTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new ProdWoMtrlTable();

            _current.Add(C_Wo_No, new ColumnInfo(C_Wo_No,"WoNo", false, typeof(string)));
            _current.Add(C_Mtrl_Id, new ColumnInfo(C_Mtrl_Id,"MtrlId", false, typeof(string)));
            _current.Add(C_Mtrl_Code, new ColumnInfo(C_Mtrl_Code,"MtrlCode", false, typeof(string)));
            _current.Add(C_Mtrl_Name, new ColumnInfo(C_Mtrl_Name,"MtrlName", false, typeof(string)));
            _current.Add(C_Req_Qty, new ColumnInfo(C_Req_Qty,"ReqQty", false, typeof(decimal)));
            _current.Add(C_Used_Qty, new ColumnInfo(C_Used_Qty,"UsedQty", false, typeof(decimal)));
            _current.Add(C_Out_Qty, new ColumnInfo(C_Out_Qty,"OutQty", false, typeof(decimal)));
            _current.Add(C_Scrap_Qty, new ColumnInfo(C_Scrap_Qty,"ScrapQty", false, typeof(decimal)));
            _current.Add(C_Return_Qty, new ColumnInfo(C_Return_Qty,"ReturnQty", false, typeof(decimal)));
            _current.Add(C_Unit, new ColumnInfo(C_Unit,"Unit", false, typeof(string)));
            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_UNIT_QTY, new ColumnInfo(C_UNIT_QTY,"UnitQty", false, typeof(decimal)));
            _current.Add(C_PO_NO, new ColumnInfo(C_PO_NO,"PoNo", false, typeof(string)));
            _current.Add(C_ITEM_TYPE, new ColumnInfo(C_ITEM_TYPE,"ItemType", false, typeof(string)));
			
		}
		
		public ColumnInfo Wo_No
        {
            get { return this[C_Wo_No]; }
        }
		
		public ColumnInfo Mtrl_Id
        {
            get { return this[C_Mtrl_Id]; }
        }
		
		public ColumnInfo Mtrl_Code
        {
            get { return this[C_Mtrl_Code]; }
        }
		
		public ColumnInfo Mtrl_Name
        {
            get { return this[C_Mtrl_Name]; }
        }
		
		public ColumnInfo Req_Qty
        {
            get { return this[C_Req_Qty]; }
        }
		
		public ColumnInfo Used_Qty
        {
            get { return this[C_Used_Qty]; }
        }
		
		public ColumnInfo Out_Qty
        {
            get { return this[C_Out_Qty]; }
        }
		
		public ColumnInfo Scrap_Qty
        {
            get { return this[C_Scrap_Qty]; }
        }
		
		public ColumnInfo Return_Qty
        {
            get { return this[C_Return_Qty]; }
        }
		
		public ColumnInfo Unit
        {
            get { return this[C_Unit]; }
        }
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo UNIT_QTY
        {
            get { return this[C_UNIT_QTY]; }
        }
		
		public ColumnInfo PO_NO
        {
            get { return this[C_PO_NO]; }
        }
		
		public ColumnInfo ITEM_TYPE
        {
            get { return this[C_ITEM_TYPE]; }
        }
		
		
		
	}
}

